package com.young.shop.pojo.entity;

import java.io.Serializable;
import java.util.Date;



/**
 * <p>
 * 
 * </p>
 *
 * @author jobob
 * @since 2021-01-27
 */

public class TbMessage implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 发送者
     */
    private String sender;

    /**
     * 接收者
     */
    private String recipient;

    /**
     * 0为未读取,1为已读取
     */
    private Integer readState;

    /**
     * 消息发送时间
     */
    private Date sendTime;

    /**
     * 消息内容
     */
    private String message;


    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public String getSender() {
        return sender;
    }

    public void setSender(String sender) {
        this.sender = sender;
    }

    public String getRecipient() {
        return recipient;
    }

    public void setRecipient(String recipient) {
        this.recipient = recipient;
    }

    public Integer getReadState() {
        return readState;
    }

    public void setReadState(Integer readState) {
        this.readState = readState;
    }

    public Date getSendTime() {
        return sendTime;
    }

    public void setSendTime(Date sendTime) {
        this.sendTime = sendTime;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    @Override
    public String toString() {
        return "TbMessage{" +
                "sender='" + sender + '\'' +
                ", recipient='" + recipient + '\'' +
                ", readState=" + readState +
                ", sendTime=" + sendTime +
                ", message='" + message + '\'' +
                '}';
    }
}
